package com.kabigon.mall.multi.common.exception;


import com.kabigon.mall.multi.common.api.IErrorCode;

/**
 * 断言处理类，用于抛出各种API异常
 *
 * @author Tom
 * @date 2022/03/20
 */
public class Asserts {
    public static void fail(String message) {
        throw new BaseException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new BaseException(errorCode);
    }
}
